package com.xxx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import lombok.*;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author xxx
 * @since 2024-11-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
public class Remark implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "remarkId", type = IdType.AUTO)
    private Integer remarkId;

    /**
     * 另一个表的id
     */
    private Integer anotherId;

    /**
     * 评论给哪个表？
     */
    private String anotherWho;

    private String remarkContent;

    private Integer userId;

    /**
     * 二级评论的父Id
     */
    private Integer remarkFather;

    private Integer remarkStatus;

    private LocalDateTime createTime;

    @TableLogic
    private Integer isDeleted;


}
